<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        //字符串匹配
        var str = "qwertyuieop";
        console.log(str.match(/e/g));
        // g 表示全局匹配
    </script>
</head>
<body>

</body>
</html>